package com.gitee.cirnochat.common.event;


import com.gitee.cirnochat.login.model.enums.DeviceType;
import com.gitee.cirnochat.user.model.enums.UserStatus;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

@Getter
public abstract class UserEvent extends ApplicationEvent {
    private final Long userId;
    private final String deviceId;
    private final String deviceName;
    private final DeviceType deviceType;
    private final UserStatus status;

    public UserEvent(Object source, Long userId , UserStatus status, String deviceId,String deviceName, DeviceType deviceType) {
        super(source);
        this.userId = userId;
        this.status = status;
        this.deviceId = deviceId;
        this.deviceName = deviceName;
        this.deviceType = deviceType;
    }
}
